Add a style class for context menus
authorMatthias Clasen <mclasen@redhat.com>
Sun, 18 Aug 2013 14:45:24 +0000 (10:45 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 18 Aug 2013 17:46:48 +0000 (13:46 -0400)
commit624ec0fb7d5329261dd0c4a991c7889a70c61535
tree4d4e31aaf825e5c9965c5f92b3c9a3b8327ba2c0
parent8d7bab7d7b902e54f27d7dbe26bca9e21eb45787
Add a style class for context menus

Attached widgets inherit from the style of the widget they are
attached to. This can sometimes have unintended consequences,
like a context menu in the main view of gedit inheriting the font
that is configured for documents, or the context menu of the preview
in the font chooser coming up with humongous font size.

To fix this problem, we introduce a context menu style class
and use it for all menus that are used like that. The theme
can then set a font for this style class.

https://bugzilla.gnome.org/show_bug.cgi?id=697127
gtk/gtkcolorswatch.c
gtk/gtkentry.c
gtk/gtklabel.c
gtk/gtklinkbutton.c
gtk/gtkmountoperation.c
gtk/gtknotebook.c
gtk/gtkplacessidebar.c
gtk/gtkstylecontext.h
gtk/gtktextview.c
gtk/gtktoolbar.c
gtk/gtkwindow.c